package com.example.booklist.controller;

import com.example.booklist.model.BookInfo;
import com.example.booklist.model.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: TestConntroller
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2023/11/29 20:30
 * @Version 1.0
 */
@RequestMapping("/test")
@Controller
public class TestController {
    @RequestMapping("/t1")
    public Boolean t1() {
        return true;
    }
    @RequestMapping("/t2")
    public String t2() {
        return "true";
    }
    @RequestMapping("/t3")
    public Integer t3() {
        return 5/0;
    }
    @RequestMapping("/t4")
    public BookInfo t4() {
        return null;
    }
    @RequestMapping("/t5")
    public Result t5() {
        return Result.success("success");
    }
//    @RequestMapping("/t1")
//    public Boolean t1() {
//        return true;
//    }
}
